import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:getx_app/app/util/dio_util.dart';
import 'package:sp_util/sp_util.dart';

import 'app/routes/app_pages.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await SpUtil.getInstance();
  DioUtil.initDio();

  runApp(
    GetMaterialApp(
      title: "Getx App",
      initialRoute: AppPages.INITIAL,
      getPages: AppPages.routes,
      theme: Get.theme.copyWith(
        platform: TargetPlatform.iOS,
      ),
    ),
  );
}
